package com.Test;

import java.util.HashMap;
import java.util.Map;

public class Test12 {
    public static void main(String[] args) {

        Map<String, String> map = new HashMap<>();
        if (map.isEmpty()) {
            System.out.println("map is empty");
        }

        Map<String, String> map1 = new HashMap<>();
        if (map1.size() == 0) {
            System.out.println("map is empty");
        }

        Map<String, String> map2 = null;
        if (map2 == null) {
            System.out.println("map is empty");
        }

    }
}
